package com.gemantic;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
*
*@author wangsf
*@date 2017年7月8日 下午10:19:02
*
*/
//启注解事务管理
@EnableTransactionManagement
@SpringBootApplication
public class Application extends SpringBootServletInitializer {

	private final static Logger logger = LoggerFactory.getLogger(Application.class);
	
    
	@Override  
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {  
        return application.sources(Application.class);  
    }  
  
    public static void main(String[] args) throws Exception {  
        SpringApplication.run(Application.class, args);  
    }
   
}
